/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-25 17:12:46
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-25 17:14:01
 */
public class Test_Replace {
    public static void main(String[] args) {
        String str = "helloworld";
        String newStr = str.replace("l", "L");
        String newStr1 = str.replace("world", "java");
        System.out.println(newStr);
        System.out.println(newStr1);
    }
}
